package com.ibuonline.b2b.entity;

import java.io.Serializable;

public class MsgOnlineVisitor implements Serializable {

	private static final long serialVersionUID = -2620670483184107083L;

	//fields
	private java.lang.Integer id;
	private java.lang.String gender;
	private java.lang.String name;
	private java.lang.String email;
	private java.lang.String telephone;
	private java.lang.String mobile;
	private java.sql.Timestamp createTime;

	//default constructor
	public MsgOnlineVisitor() {
	}

	//getter
	public java.lang.Integer getId() {
		return id;
	}
	public java.lang.String getGender() {
		return gender;
	}
	public java.lang.String getName() {
		return name;
	}
	public java.lang.String getEmail() {
		return email;
	}
	public java.lang.String getTelephone() {
		return telephone;
	}
	public java.lang.String getMobile() {
		return mobile;
	}
	public java.sql.Timestamp getCreateTime() {
		return createTime;
	}

	//setter
	public void setId(java.lang.Integer id) {
		this.id = id;
	}
	public void setGender(java.lang.String gender) {
		this.gender = gender;
	}
	public void setName(java.lang.String name) {
		this.name = name;
	}
	public void setEmail(java.lang.String email) {
		this.email = email;
	}
	public void setTelephone(java.lang.String telephone) {
		this.telephone = telephone;
	}
	public void setMobile(java.lang.String mobile) {
		this.mobile = mobile;
	}
	public void setCreateTime(java.sql.Timestamp createTime) {
		this.createTime = createTime;
	}

	//equals method
	public boolean equals(Object other) {
		if (this == other)
			return true;
		if (!(other instanceof MsgOnlineVisitor))
			return false;

		final MsgOnlineVisitor msgOnlineVisitor = (MsgOnlineVisitor)other;
		if (!this.id.equals(msgOnlineVisitor.getId()))
			return false;

		return true;
	}

	//hashCode method
	public int hashCode() {
		StringBuffer keys = new StringBuffer();
		keys.append(id).append(",");
		if (keys.length() > 0)
			keys.deleteCharAt(keys.length() - 1);
		return keys.toString().hashCode();
	}

	//toString method
	public String toString() {
		return new StringBuilder("MsgOnlineVisitor[")
			.append("id=").append(id).append(", ")
			.append("gender=").append(gender).append(", ")
			.append("name=").append(name).append(", ")
			.append("email=").append(email).append(", ")
			.append("telephone=").append(telephone).append(", ")
			.append("mobile=").append(mobile).append(", ")
			.append("createTime=").append(createTime).append("]").toString();
	}
}